package vendingMachine;


public class MoneyCalcurate {
	public static boolean isAcceptable(int money) throws Exception {
		if(money == MoneyConstants.ONE_THOUSAND_YEN 
			|| money == MoneyConstants.FIVE_HUNDRED_YEN
			|| money == MoneyConstants.ONE_HUNDRED_YEN
			|| money == MoneyConstants.FIFTY_YEN
			|| money == MoneyConstants.TEN_YEN
		) {
			return true;
		}
		return false;
	}
	
	public static void add(int money) {
		try {
			if(isAcceptable(money)) {
				;
			} else {
				
			}
		} catch (Exception e) {
			// TODO 自動生成された catch ブロック
			e.printStackTrace();
		}
	}
	
}
